package enumTest;

public class Season {
    private String name;
    private String temperature;
    public static Season spring = new Season("春天","28度");
    public static Season  summer = new Season("夏天","35度");
    public static Season autumn = new Season("秋天","27度");
    public static Season winter = new Season("冬天","0度");
    public static final Integer A = 1;
    private Season(String name, String temperature) {
        this.name = name;
        this.temperature = temperature;
    }
    public Season(){
        System.out.println("构造方法实现了");
    }
//    static {
//        System.out.println("我初始化了");
//    }
    public void sea(){
        System.out.println("Season中的sea方法");
    }
    @Override
    public String toString() {
        return "Season{" +
                "name='" + name + '\'' +
                ", temperature='" + temperature + '\'' +
                '}';
    }
}
